package com.springboot.fastcode.generate.service;

import com.springboot.fastcode.common.entity.FieldInfo;
import com.springboot.fastcode.generate.dto.GenerateCodeDto;
import com.springcloud.common.vo.SelectFormatVO;
import freemarker.template.TemplateException;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;

/**
 * @author: liaofuxing
 * @E-mail: liaofuxing@outlook.com
 * @date: 2020/05/17 18:38
 **/
public interface GenerateCodeService {

    List<SelectFormatVO>  getTableSelect() throws SQLException;

    List<FieldInfo> getTableField(String tableName) throws SQLException;

    void generateCode(GenerateCodeDto generateCodeDto, String token) throws IOException, TemplateException;
}
